import request from '@/utils/request';
import type { BaseBeanModel, ResponseBaseData } from '@/api/model/baseModel';
export interface SysLicenseDto extends BaseBeanModel {
  /** 授权类型 */
  appFeature?: string;
  /** 版权所有 */
  licenseHostName?: string;
  /** 授权用户数 */
  licenseOnline?: string;
  /** 授权菜单数 */
  licenseMenuCount?: number;
  /** 到期时间 */
  licenseLastDate?: string;
  /** IP地址 */
  lastUpdateIp?: string;
  /** MAC地址 */
  licenseId?: string;
}
// 获取已上传的授权文件信息
export function getLicenseSingle(): Promise<ResponseBaseData<any>> {
  return request.get('/appsys/SysLicenseRest/getLicenseSingle/v1');
}
// 删除授权文件
export function deleteLicenseFile(): Promise<ResponseBaseData<any>> {
  return request.delete('/appsys/SysLicenseRest/delete/v1');
}
